﻿using System;
using System.Diagnostics;
using System.IO;
using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;

namespace com.gexin.rp.sdk.dto
{
	// Token: 0x02000022 RID: 34
	[DebuggerNonUserCode]
	public sealed class Target : GeneratedMessage<Target, Target.Builder>
	{
		// Token: 0x06000433 RID: 1075 RVA: 0x0000920A File Offset: 0x0000740A
		private Target()
		{
		}

		// Token: 0x1700020C RID: 524
		// (get) Token: 0x06000434 RID: 1076 RVA: 0x0000923A File Offset: 0x0000743A
		public static Target DefaultInstance
		{
			get
			{
				return Target.defaultInstance;
			}
		}

		// Token: 0x1700020D RID: 525
		// (get) Token: 0x06000435 RID: 1077 RVA: 0x00009241 File Offset: 0x00007441
		public override Target DefaultInstanceForType
		{
			get
			{
				return Target.DefaultInstance;
			}
		}

		// Token: 0x1700020E RID: 526
		// (get) Token: 0x06000436 RID: 1078 RVA: 0x00002579 File Offset: 0x00000779
		protected override Target ThisMessage
		{
			get
			{
				return this;
			}
		}

		// Token: 0x1700020F RID: 527
		// (get) Token: 0x06000437 RID: 1079 RVA: 0x00009248 File Offset: 0x00007448
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_Target__Descriptor;
			}
		}

		// Token: 0x17000210 RID: 528
		// (get) Token: 0x06000438 RID: 1080 RVA: 0x0000924F File Offset: 0x0000744F
		protected override FieldAccessorTable<Target, Target.Builder> InternalFieldAccessors
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_Target__FieldAccessorTable;
			}
		}

		// Token: 0x17000211 RID: 529
		// (get) Token: 0x06000439 RID: 1081 RVA: 0x00009256 File Offset: 0x00007456
		public bool HasAppId
		{
			get
			{
				return this.hasAppId;
			}
		}

		// Token: 0x17000212 RID: 530
		// (get) Token: 0x0600043A RID: 1082 RVA: 0x0000925E File Offset: 0x0000745E
		public string AppId
		{
			get
			{
				return this.appId_;
			}
		}

		// Token: 0x17000213 RID: 531
		// (get) Token: 0x0600043B RID: 1083 RVA: 0x00009266 File Offset: 0x00007466
		public bool HasClientId
		{
			get
			{
				return this.hasClientId;
			}
		}

		// Token: 0x17000214 RID: 532
		// (get) Token: 0x0600043C RID: 1084 RVA: 0x0000926E File Offset: 0x0000746E
		public string ClientId
		{
			get
			{
				return this.clientId_;
			}
		}

		// Token: 0x17000215 RID: 533
		// (get) Token: 0x0600043D RID: 1085 RVA: 0x00009276 File Offset: 0x00007476
		public bool HasAlias
		{
			get
			{
				return this.hasAlias;
			}
		}

		// Token: 0x17000216 RID: 534
		// (get) Token: 0x0600043E RID: 1086 RVA: 0x0000927E File Offset: 0x0000747E
		public string Alias
		{
			get
			{
				return this.alias_;
			}
		}

		// Token: 0x17000217 RID: 535
		// (get) Token: 0x0600043F RID: 1087 RVA: 0x00009286 File Offset: 0x00007486
		public override bool IsInitialized
		{
			get
			{
				return this.hasAppId && this.hasClientId;
			}
		}

		// Token: 0x06000440 RID: 1088 RVA: 0x000092A0 File Offset: 0x000074A0
		public override void WriteTo(ICodedOutputStream output)
		{
			this.CalcSerializedSize();
			string[] targetFieldNames = Target._targetFieldNames;
			if (this.hasAppId)
			{
				output.WriteString(1, targetFieldNames[1], this.AppId);
			}
			if (this.hasClientId)
			{
				output.WriteString(2, targetFieldNames[2], this.ClientId);
			}
			if (this.hasAlias)
			{
				output.WriteString(3, targetFieldNames[0], this.Alias);
			}
			this.UnknownFields.WriteTo(output);
		}

		// Token: 0x17000218 RID: 536
		// (get) Token: 0x06000441 RID: 1089 RVA: 0x00009310 File Offset: 0x00007510
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				return this.CalcSerializedSize();
			}
		}

		// Token: 0x06000442 RID: 1090 RVA: 0x00009330 File Offset: 0x00007530
		private int CalcSerializedSize()
		{
			int num = this.memoizedSerializedSize;
			if (num != -1)
			{
				return num;
			}
			num = 0;
			if (this.hasAppId)
			{
				num += CodedOutputStream.ComputeStringSize(1, this.AppId);
			}
			if (this.hasClientId)
			{
				num += CodedOutputStream.ComputeStringSize(2, this.ClientId);
			}
			if (this.hasAlias)
			{
				num += CodedOutputStream.ComputeStringSize(3, this.Alias);
			}
			num += this.UnknownFields.SerializedSize;
			this.memoizedSerializedSize = num;
			return num;
		}

		// Token: 0x06000443 RID: 1091 RVA: 0x000093A7 File Offset: 0x000075A7
		public static Target ParseFrom(ByteString data)
		{
			return Target.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x06000444 RID: 1092 RVA: 0x000093B9 File Offset: 0x000075B9
		public static Target ParseFrom(ByteString data, ExtensionRegistry extensionRegistry)
		{
			return Target.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000445 RID: 1093 RVA: 0x000093CC File Offset: 0x000075CC
		public static Target ParseFrom(byte[] data)
		{
			return Target.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x06000446 RID: 1094 RVA: 0x000093DE File Offset: 0x000075DE
		public static Target ParseFrom(byte[] data, ExtensionRegistry extensionRegistry)
		{
			return Target.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000447 RID: 1095 RVA: 0x000093F1 File Offset: 0x000075F1
		public static Target ParseFrom(Stream input)
		{
			return Target.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x06000448 RID: 1096 RVA: 0x00009403 File Offset: 0x00007603
		public static Target ParseFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return Target.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000449 RID: 1097 RVA: 0x00009416 File Offset: 0x00007616
		public static Target ParseDelimitedFrom(Stream input)
		{
			return Target.CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
		}

		// Token: 0x0600044A RID: 1098 RVA: 0x00009428 File Offset: 0x00007628
		public static Target ParseDelimitedFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return Target.CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x0600044B RID: 1099 RVA: 0x0000943B File Offset: 0x0000763B
		public static Target ParseFrom(ICodedInputStream input)
		{
			return Target.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x0600044C RID: 1100 RVA: 0x0000944D File Offset: 0x0000764D
		public static Target ParseFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
		{
			return Target.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x0600044D RID: 1101 RVA: 0x00002579 File Offset: 0x00000779
		private Target MakeReadOnly()
		{
			return this;
		}

		// Token: 0x0600044E RID: 1102 RVA: 0x00009460 File Offset: 0x00007660
		public static Target.Builder CreateBuilder()
		{
			return new Target.Builder();
		}

		// Token: 0x0600044F RID: 1103 RVA: 0x00009467 File Offset: 0x00007667
		public override Target.Builder ToBuilder()
		{
			return Target.CreateBuilder(this);
		}

		// Token: 0x06000450 RID: 1104 RVA: 0x00009460 File Offset: 0x00007660
		public override Target.Builder CreateBuilderForType()
		{
			return new Target.Builder();
		}

		// Token: 0x06000451 RID: 1105 RVA: 0x0000946F File Offset: 0x0000766F
		public static Target.Builder CreateBuilder(Target prototype)
		{
			return new Target.Builder(prototype);
		}

		// Token: 0x06000452 RID: 1106 RVA: 0x00009478 File Offset: 0x00007678
		static Target()
		{
			FileDescriptor descriptor = GtReq.Descriptor;
		}

		// Token: 0x0400029D RID: 669
		private static readonly Target defaultInstance = new Target().MakeReadOnly();

		// Token: 0x0400029E RID: 670
		private static readonly string[] _targetFieldNames = new string[]
		{
			"alias",
			"appId",
			"clientId"
		};

		// Token: 0x0400029F RID: 671
		private static readonly uint[] _targetFieldTags = new uint[]
		{
			26u,
			10u,
			18u
		};

		// Token: 0x040002A0 RID: 672
		public const int AppIdFieldNumber = 1;

		// Token: 0x040002A1 RID: 673
		private bool hasAppId;

		// Token: 0x040002A2 RID: 674
		private string appId_ = "";

		// Token: 0x040002A3 RID: 675
		public const int ClientIdFieldNumber = 2;

		// Token: 0x040002A4 RID: 676
		private bool hasClientId;

		// Token: 0x040002A5 RID: 677
		private string clientId_ = "";

		// Token: 0x040002A6 RID: 678
		public const int AliasFieldNumber = 3;

		// Token: 0x040002A7 RID: 679
		private bool hasAlias;

		// Token: 0x040002A8 RID: 680
		private string alias_ = "";

		// Token: 0x040002A9 RID: 681
		private int memoizedSerializedSize = -1;

		// Token: 0x02000072 RID: 114
		[DebuggerNonUserCode]
		public sealed class Builder : GeneratedBuilder<Target, Target.Builder>
		{
			// Token: 0x17000439 RID: 1081
			// (get) Token: 0x06000AB7 RID: 2743 RVA: 0x00002579 File Offset: 0x00000779
			protected override Target.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}

			// Token: 0x06000AB8 RID: 2744 RVA: 0x00019237 File Offset: 0x00017437
			public Builder()
			{
				this.result = Target.DefaultInstance;
				this.resultIsReadOnly = true;
			}

			// Token: 0x06000AB9 RID: 2745 RVA: 0x00019251 File Offset: 0x00017451
			internal Builder(Target cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}

			// Token: 0x06000ABA RID: 2746 RVA: 0x00019268 File Offset: 0x00017468
			private Target PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					Target other = this.result;
					this.result = new Target();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}

			// Token: 0x1700043A RID: 1082
			// (get) Token: 0x06000ABB RID: 2747 RVA: 0x000192A4 File Offset: 0x000174A4
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}

			// Token: 0x1700043B RID: 1083
			// (get) Token: 0x06000ABC RID: 2748 RVA: 0x000192B1 File Offset: 0x000174B1
			protected override Target MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}

			// Token: 0x06000ABD RID: 2749 RVA: 0x000192B9 File Offset: 0x000174B9
			public override Target.Builder Clear()
			{
				this.result = Target.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}

			// Token: 0x06000ABE RID: 2750 RVA: 0x000192CE File Offset: 0x000174CE
			public override Target.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new Target.Builder(this.result);
				}
				return new Target.Builder().MergeFrom(this.result);
			}

			// Token: 0x1700043C RID: 1084
			// (get) Token: 0x06000ABF RID: 2751 RVA: 0x000192F4 File Offset: 0x000174F4
			public override MessageDescriptor DescriptorForType
			{
				get
				{
					return Target.Descriptor;
				}
			}

			// Token: 0x1700043D RID: 1085
			// (get) Token: 0x06000AC0 RID: 2752 RVA: 0x00009241 File Offset: 0x00007441
			public override Target DefaultInstanceForType
			{
				get
				{
					return Target.DefaultInstance;
				}
			}

			// Token: 0x06000AC1 RID: 2753 RVA: 0x000192FB File Offset: 0x000174FB
			public override Target BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}

			// Token: 0x06000AC2 RID: 2754 RVA: 0x0001931E File Offset: 0x0001751E
			public override Target.Builder MergeFrom(IMessage other)
			{
				if (other is Target)
				{
					return this.MergeFrom((Target)other);
				}
				base.MergeFrom(other);
				return this;
			}

			// Token: 0x06000AC3 RID: 2755 RVA: 0x00019340 File Offset: 0x00017540
			public override Target.Builder MergeFrom(Target other)
			{
				if (other == Target.DefaultInstance)
				{
					return this;
				}
				this.PrepareBuilder();
				if (other.HasAppId)
				{
					this.AppId = other.AppId;
				}
				if (other.HasClientId)
				{
					this.ClientId = other.ClientId;
				}
				if (other.HasAlias)
				{
					this.Alias = other.Alias;
				}
				this.MergeUnknownFields(other.UnknownFields);
				return this;
			}

			// Token: 0x06000AC4 RID: 2756 RVA: 0x000193A8 File Offset: 0x000175A8
			public override Target.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}

			// Token: 0x06000AC5 RID: 2757 RVA: 0x000193B8 File Offset: 0x000175B8
			public override Target.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				UnknownFieldSet.Builder builder = null;
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(Target._targetFieldNames, text, StringComparer.Ordinal);
						if (num2 < 0)
						{
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
							continue;
						}
						num = Target._targetFieldTags[num2];
					}
					if (num <= 10u)
					{
						if (num == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num == 10u)
						{
							this.result.hasAppId = input.ReadString(ref this.result.appId_);
							continue;
						}
					}
					else
					{
						if (num == 18u)
						{
							this.result.hasClientId = input.ReadString(ref this.result.clientId_);
							continue;
						}
						if (num == 26u)
						{
							this.result.hasAlias = input.ReadString(ref this.result.alias_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						if (builder != null)
						{
							this.UnknownFields = builder.Build();
						}
						return this;
					}
					if (builder == null)
					{
						builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
					}
					this.ParseUnknownField(input, builder, extensionRegistry, num, text);
				}
				if (builder != null)
				{
					this.UnknownFields = builder.Build();
				}
				return this;
			}

			// Token: 0x1700043E RID: 1086
			// (get) Token: 0x06000AC6 RID: 2758 RVA: 0x000194E6 File Offset: 0x000176E6
			public bool HasAppId
			{
				get
				{
					return this.result.hasAppId;
				}
			}

			// Token: 0x1700043F RID: 1087
			// (get) Token: 0x06000AC7 RID: 2759 RVA: 0x000194F3 File Offset: 0x000176F3
			// (set) Token: 0x06000AC8 RID: 2760 RVA: 0x00019500 File Offset: 0x00017700
			public string AppId
			{
				get
				{
					return this.result.AppId;
				}
				set
				{
					this.SetAppId(value);
				}
			}

			// Token: 0x06000AC9 RID: 2761 RVA: 0x0001950A File Offset: 0x0001770A
			public Target.Builder SetAppId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppId = true;
				this.result.appId_ = value;
				return this;
			}

			// Token: 0x06000ACA RID: 2762 RVA: 0x00019537 File Offset: 0x00017737
			public Target.Builder ClearAppId()
			{
				this.PrepareBuilder();
				this.result.hasAppId = false;
				this.result.appId_ = "";
				return this;
			}

			// Token: 0x17000440 RID: 1088
			// (get) Token: 0x06000ACB RID: 2763 RVA: 0x0001955D File Offset: 0x0001775D
			public bool HasClientId
			{
				get
				{
					return this.result.hasClientId;
				}
			}

			// Token: 0x17000441 RID: 1089
			// (get) Token: 0x06000ACC RID: 2764 RVA: 0x0001956A File Offset: 0x0001776A
			// (set) Token: 0x06000ACD RID: 2765 RVA: 0x00019577 File Offset: 0x00017777
			public string ClientId
			{
				get
				{
					return this.result.ClientId;
				}
				set
				{
					this.SetClientId(value);
				}
			}

			// Token: 0x06000ACE RID: 2766 RVA: 0x00019581 File Offset: 0x00017781
			public Target.Builder SetClientId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientId = true;
				this.result.clientId_ = value;
				return this;
			}

			// Token: 0x06000ACF RID: 2767 RVA: 0x000195AE File Offset: 0x000177AE
			public Target.Builder ClearClientId()
			{
				this.PrepareBuilder();
				this.result.hasClientId = false;
				this.result.clientId_ = "";
				return this;
			}

			// Token: 0x17000442 RID: 1090
			// (get) Token: 0x06000AD0 RID: 2768 RVA: 0x000195D4 File Offset: 0x000177D4
			public bool HasAlias
			{
				get
				{
					return this.result.hasAlias;
				}
			}

			// Token: 0x17000443 RID: 1091
			// (get) Token: 0x06000AD1 RID: 2769 RVA: 0x000195E1 File Offset: 0x000177E1
			// (set) Token: 0x06000AD2 RID: 2770 RVA: 0x000195EE File Offset: 0x000177EE
			public string Alias
			{
				get
				{
					return this.result.Alias;
				}
				set
				{
					this.SetAlias(value);
				}
			}

			// Token: 0x06000AD3 RID: 2771 RVA: 0x000195F8 File Offset: 0x000177F8
			public Target.Builder SetAlias(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAlias = true;
				this.result.alias_ = value;
				return this;
			}

			// Token: 0x06000AD4 RID: 2772 RVA: 0x00019625 File Offset: 0x00017825
			public Target.Builder ClearAlias()
			{
				this.PrepareBuilder();
				this.result.hasAlias = false;
				this.result.alias_ = "";
				return this;
			}

			// Token: 0x04000373 RID: 883
			private bool resultIsReadOnly;

			// Token: 0x04000374 RID: 884
			private Target result;
		}
	}
}
